package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 用户行为禁止类型枚举
 */
@AllArgsConstructor
@Getter
public enum UserForbidTypeEnum {
    LOGIN("login","登录"),
    RECHARGE("recharge","充值"),
    SENDREDBAG("sendRedBag","发红包"),
    WITHDRAW("withdraw","提现"),
    INVESTIGATE("investigate","尽调"),
    SPEEDBORROWED("speedBorrowed","极速借"),
   /* BORROWED("borrowed","信用借"),
    QQJBORROWED("qqjBorrowed","悄悄借"),*/
    CREDITCARDLOAN("creditCardLoan","信用卡借"),
    SOCIALSECURITYLOAN("socialSecurityLoan","社保借"),
    IDENTITY("identity","身份认证"),
    GUARANTOR("guarantor","跟保"),
    INVESTOR("investor","投资"),
    FORBIDSPEECH("forbidSpeech","禁言"),
    NIIWOCIRCLE("niiwoCircle","你我圈"),
    BUILDGROUP("buildGroup","建群"),
    ATTENTION("attention","关注"),
    ADD_FRIEND("addFriend","添加好友"),
    CONSUME_LOAN("consumeLoan","消费贷"),
    ;

    private final String value;
    private final String desc;

    public static UserForbidTypeEnum enumOf(String value) {
        for (UserForbidTypeEnum t : values()) {
            if (t.value.equals(value)) {
                return t;
            }
        }
        return null;
    }
}
